Skip to main content

Span Calculator

This calculates the margin requirement for a list of input positions.

Request to be POSTed to uri : /NorenWClientTP/SpanCalc

Request Details :

Json FieldsPossible valueDescription
actid*Any Account id, preferably actual account id if sending from post login screen.
pos*Array of json objects. (object fields given in below table)

Position structure as follows:

Json FieldsPossible valueDescription
prdC / M / HProduct
exchNFO, CDS, MCX ...Exchange
instnameFUTSTK, FUTIDX, OPTSTK, FUTCUR...Instrument name
symnameUSDINR, ACC, ABB,NIFTY..Symbol name
exd29-DEC-2022DD-MMM-YYYY format
opttCE, PEOption Type
strprc11900.00, 71.0025Strike price
buyqtyBuy Open Quantity
sellqtySell Open Quantity
netqtyNet traded quantity

Response Details :

Json FieldsPossible valueDescription
statOk or Not_OkMarket watch success or failure indication.
spanSpan value
expoIExposure margin
span_tradeSpan value ignoring input fields buyqty, sellqty
expo_tradeExposure margin ignoring input fields buyqty, sellqty

Sample Success Response :

{ "request_time": "11:01:59 25-11-2022", "stat": "Ok", "span": "19416.00", "expo": "4338.34", "span_trade": "19416.00", "expo_trade": "4338.34" }